Send Transactional Email
// SELECT template_id FROM core_email_template WHERE template_code='Your template code'; $templateId = 495; $sender = array('name' => 'Imran Aghan', 'email' => 'email@address.co.uk'); // Set recepient information $recepientEmail = 'someone@someaddress.co.uk'; $recepientName = 'Name Surname'; // Get Store ID $storeId = Mage::app()->getStore()->getId(); // Send Transactional Email Mage::getModel('core/email_template') ->sendTransactional($templateId, $sender, $recepientEmail, $recepientName, array( 'variable1' => 'Customer Name', 'variable2' => 'Customer Surname' ), $storeId); |